package com.itheima;

public class CatOrDog {
    public static void main(String[] args) {
        //定义Cat类和Dog类的对象
        Cat cat = new Cat();
        Dog dog = new Dog();
        //设置cat对象的各个属性及功能选项
        cat.set();
        cat.set("花色的", "波斯猫", "吃鱼", 1);
        //输出cat对象的属性
        cat.get(1);
        //设置cat对象的各个属性及功能选项
        cat.set();
        cat.set("花色的", "波斯猫", "抓老鼠", 2);
        //输出cat对象的属性
        cat.get(2);
        //设置dog对象的各个属性及功能选项
        dog.set();
        dog.set("黑色的", "藏獒", "啃骨头", 1);
        //输出dog对象的属性
        dog.get(1);
        //设置dog对象的各个属性及功能选项
        dog.set();
        dog.set("黑色的", "藏獒", "看家", 2);
        //输出dog对象的属性
        dog.get(2);

    }
}
